* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.center {
  display: flex;
  justify-content: center;
  margin: 100px auto;
  width: 100px;
  background: #ff9494;
}
.center .trigger {
  position: relative;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.center ul {
  list-style: none;
}
.center #list {
  position: absolute;
  display: none;
  width: 100%;
  background-color: #dea4ff;
  transition: all 0.3s;
}
.center #list li {
  width: 100%;
  text-align: center;
}
.center #list a {
  display: block;
  width: 100%;
  font-size: 24px;
  text-decoration: none;
  color: #000;
  transition: all 0.3s;
}
.center #list a:hover {
  background-color: brown;
}
.center .trigger:hover {
  background-color: aqua;
}
.center .trigger:hover #list {
  display: block;
}
.center .trigger:has(#list:hover) {
  background-color: #ff9494;
}
